package com.sumainfor.pc.market.service;

import com.sumainfor.common.NiuYunToken;
import com.sumainfor.pc.market.dao.FacilityMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**设备
 * @Auther: zhlu
 * @Date: 2018/11/8 19:35
 * @Description:
 */
@Service
public class FacilityService {

    @Autowired
    FacilityMapper facilityMapper;

    /**
     * 功能描述: 
     * 所有设备
     * @Author zhlu
     * @Description //TODO
     * @Date 2018/11/8 19:38
     */
    public List<Map<String,Object>>getFacilityList(){
        List<Map<String,Object>>getFacilityList=facilityMapper.getFacilityList();
        for(Map<String,Object> map:getFacilityList){
            map.put("FaUrl", NiuYunToken.publicQiniuUrl+map.get("FaUrl"));
            map.put("isbord",false);//是否被选择
        }
        return getFacilityList;
    }
}
